package com.herui.iot.utils;

import android.text.TextUtils;

import com.herui.sdyu_lib.utils.LogUtils;


/**
 * Created by amanda.shan on 2017/1/23.
 */

public class ExceptionUtils {

    public static void printException(Throwable throwable, String s, String s1) {
        if (throwable != null) {
            throwable.printStackTrace();
        }
        if (!TextUtils.isEmpty(s) && !TextUtils.isEmpty(s1)) {
            LogUtils.e(s + ":" + s1);
        }
    }
}
